   <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>报账统计</title>
    <link href="../../layui/css/layui.css" rel="stylesheet" type="text/css">
    <script src="../../layui/layui.js"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css">
    <script src="../../js/jquery-1.8.3.js"></script>
    <script src="../../js/util.js"></script>
    <script>
        layui.use(['table', 'jquery', 'element','layer'], function () {
            var table = layui.table;
            var $ = layui.$;
            var layer=layui.layer;
            $("#download").on('click', function () {
                location.href = '/ict/download';
            });
            var index=layer.load(1, {
                shade: [0.1, '#fff'] //0.1透明度的白色背景
            });
            $(document).ready(function () {
                $.ajax({
                    type: 'post',
                    //async: false,
                    url: '/ict/find',
                    beforeSend: function () {
                    },
                    success: function (json) {
                        var title = json.data.titleList;
                        var data = json.data.dataList;
                        console.info(json);
                        if (title.length > 1 && data.length > 1) {
                            var table = '<thead>';
                            for (var i = 1; i < title.length - 3; i++) {
                                table += '<th>' + title[i] + '</th>';
                            }
                            table += '</thead><tbody>';
                            for (var j = 0; j < data.length; j++) {
                                table += '<tr>' +
                                    '<td>' + data[j].cityName + '</td>' +
                                    '<td>' + data[j].countyName + '</td>' +
                                    '<td>' + data[j].mgrName + '</td>' +
                                    '<td>' + data[j].createTime + '</td>' +
                                    '<td>' + data[j].weekData + '</td>' ;
                                var monthData = data[j].monthData;
                                for (var a = 0; a < monthData.length; a++) {
                                    table += '<td>' + monthData[a] + '</td>'
                                }
                               table +=   '<td>' + data[j].nowMonthData + '</td>' +
                                         '<td>' + data[j].nowYearData + '</td>'/* +
                                         '<td>' + data[j].nowCityMonthData + '</td>'+
                                         '<td>' + data[j].nowCityYearData + '</td>' */; 
                                         
                                table += '</tr>';
                            }
                            table += '</tbody>';
                            $("#table").html(table);
                            layer.close(index);
                        } else {
                            layer.close(index);
                            $("#table").html('系统异常，请联系管理员处理!');
                        }
                    }, error: function () {
                        layer.close(index);
                        layer.msg('系统异常，请联系管理员处理!');
                    }
                });
            });
        });
    </script>
</head>
<body>
<div class="layui-content-body">
    <div class="scroll-box">
        <div class="breadcrumb-box">
              <span class="layui-breadcrumb" lay-separator="|">
 <a href="javascript:returnIndex2()">首页&nbsp;</a>
  <a href="">&nbsp;报表管理&nbsp;</a>
  <a href="">&nbsp;ICT周报&nbsp;</a>
</span>
        </div>
        <div class="content-box ">
            <button class="layui-btn layui-btn-normal" type="button" id="download">
                导出
            </button>
            <div class="table-box">
                <table id="table" class="layui-table">
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>